package com.mayikt;

import java.util.concurrent.ConcurrentLinkedDeque;

/**
 * @ClassName Test16
 * @Author 蚂蚁课堂余胜军 QQ644064779 www.mayikt.com
 * @Version V1.0
 **/
public class Test16 {
    public static void main(String[] args) {
        ConcurrentLinkedDeque waitThreads = new ConcurrentLinkedDeque<>();
        waitThreads.add("mayikt");
        waitThreads.add("meite");
        waitThreads.add("xiaowie");
        // 队列遵循原则 先近先先出原则
        System.out.println(waitThreads.poll());
        System.out.println(waitThreads.size());
    }
}
